package org.csu.wuliu.persistence;

import org.csu.wuliu.domain.Task;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Repository
public interface TaskMapper {
    Task getTaskByTaskId(String taskId);
    Task getTaskByOrderId(String orderId);
    //查询某配送员所有任务单
    List<Task> getTaskListByDistributorId(String distributorId);
    //查询某用户所有任务单
    List<Task> getTaskListByUsername(String username);
    //查询某分站中某种状态的所有任务单
    List<Task> getTaskListBySubstationAndStatus(String substationId, int status);
    //查询某分站中所有任务单
    List<Task> getTaskListBySubstation(String substationId);

    List<String> getLeastTaskSub();

    void insertTask(Task task);
    void updateTask(Task task);

}
